import Vue from 'vue'
import Router from 'vue-router'
import Home from '../pages/Home.vue'
import HomePassword from '../pages/HomePassword.vue'
import CertificationProcess from '../pages/CertificationProcess.vue'
import User from '../pages/User.vue'
import Record from '../pages/Record.vue'
import Package from '../pages/Package.vue'
import Edit from '../pages/Edit.vue'
import Service from '../pages/Service.vue'
import Status from '../pages/Status.vue'
import Photo from '../pages/Photo.vue'
import HomeCode from '../pages/HomeCode.vue'
import Test from '../pages/Test.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/test',
      name: 'Test',
      component: Test
    },
    {
      path: '/password',
      name: 'HomePassword',
      component: HomePassword
    },
    {
      path: '/code',
      name: 'HomeCode',
      component: HomeCode
    },
    {
      path: '/certificationProcess',
      name: 'CertificationProcess',
      component: CertificationProcess
    },
    {
      path: '/user',
      name: 'User',
      component: User,
      children: [
        {
          path: '/user/service',
          name: 'Service',
          component: Service
        },
        {
          path: '/user/record',
          name: 'Record',
          component: Record
        },
        {
          path: '/user/package',
          name: 'Package',
          component: Package
        },
        {
          path: '/user/edit',
          name: 'Edit',
          component: Edit
        },
        {
          path: '/user/photo',
          name: 'Photo',
          component: Photo
        },
        {
          path: '/user',
          name: 'Status',
          component: Status
        }

      ]
    },

  ]
})
